<?php

/**
 * 
 * 
 * @author Navid Mitchell
 * 
 * @Results({@Result(name="ok",value="test.twig")})
 * @Action(route="wildcard/{_actionMethod}")
 */
class Action {

    private $string;
    private $name;

    /**
     * @Action(route="test")
     */
    public function testMethod() {

        $this->string = 'Hello ' . $this->name;

        return 'ok';
    }

    public function execute() {
        $this->string = 'Wildcard test';

        return 'ok';
    }
    
    public function executeAnother(){
        $this->string = 'Another Wildcard test';

        return 'ok';
    }

    public function getString() {
        return $this->string;
    }

    public function setName($name) {
        $this->name = $name;
    }

}